package com.fly.mhello.action;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

import base.util.Result;

@ControllerAdvice
public class ErrorAction {

	@ExceptionHandler(Exception.class)
	@ResponseBody
	public Result error(Exception e) {
		e.printStackTrace();
		return new Result("111", e.getMessage(), e.toString());
	}
}
